//
//  TipVIew.m
//  Tongcheng
//
//  Created by   丛熠超 on 2017/4/17.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "TipVIew.h"

@implementation TipVIew

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    self.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
}
- (IBAction)cancle:(id)sender {
    [self removeFromSuperview];
}

- (IBAction)GetVIp:(UIButton *)sender {
    if ([_delegate respondsToSelector:@selector(GoBuyVip)]) {
        [_delegate GoBuyVip];
    }
    
}
+ (instancetype)gainMineHeaderView
{
    return [[NSBundle mainBundle] loadNibNamed:@"TipView" owner:self options:nil].lastObject;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
